import request from '@/utils/request'

export const getDepartment = () => request.get('/company/department')
export function getManagerList() {
  return request({
    url: '/sys/user/simple'
  })
}
export const addDepartment = data => request.post('/company/department', data)
export function getDepartmentDetail(id) {
  return request({
    url: `/company/department/${id}`
  })
}
export function updateDepartment(data) {
  return request({
    method: 'put',
    url: `/company/department/${data.id}`,
    data
  })
}
export function delDepartment(id) {
  return request({
    method: 'delete',
    url: `/company/department/${id}`
  })
}
